using Ocelot.DependencyInjection;
using Ocelot.Middleware;
using Ocelot.Provider.Consul;

var builder = WebApplication.CreateBuilder(args);

builder.Services.AddOcelot()
    .AddConsul();
builder.Configuration.AddJsonFile("ocelot.json",false,true);
var app = builder.Build();
 app.UseOcelot().Wait();

//app.MapGet("/", () => "Hello World!");

app.Run();
